package com.itheima.reggie.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.itheima.reggie.domain.Category;
import com.itheima.reggie.domain.Employee;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface EmployeeMapper extends BaseMapper<Employee> {

    //根据用户名查询员工信息 用于登录
    Employee findByUsername(String username);
    //查询全部以及根据名称查询，用于员工信息展示
    List<Employee> findByName(String name);
    //添加员工
    Integer add(Employee employee);

    Employee findById(Long id);

    Integer update(Employee employee);
}
